package day240816.file;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        //File file =new File("./test.txt");
        //File file =new File("E:\\FZJ\\test.txt");
        File file =new File("E:/FZJ/test.txt");

        System.out.println("文件名："+file.getName());
        System.out.println("文件长度"+file.length());
        System.out.println("是否可读"+file.canRead());
        System.out.println("是否可写"+file.canWrite());
        System.out.println("是否隐藏"+file.isHidden());
    }
}
